package com.example.springboot.mapper;
import com.example.springboot.controller.request.BaseRequset;
import com.example.springboot.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
//接口层
@Mapper
public interface UserMapper {
     User getById(Integer id) ;



    //@Select("select * from user")
    List<User> list();

    List<User> listByCondition(BaseRequset baseRequset);

    void save(User user);

    void updateById(User user);

    void deleteById(Integer id);

    User getByCardNo(String cardNo);

}
